﻿<%@ Page Language="VB" LCID="11274" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="AdministrarTurnos.aspx.vb" Inherits="AdministrarTurnos" title="Página sin título" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 680px; height: 450px;">
        <tr>
            <td style="height: 23px; " align="center" colspan="6">
                <asp:Label ID="Label27" runat="server" Font-Size="Large" ForeColor="#9966FF" 
                    Text="Administracion de Turnos"></asp:Label>
                </td>
        </tr>
        <tr>
            <td style="height: 28px; width: 37px">
                &nbsp;</td>
            <td style="height: 28px; width: 122px;">
                </td>
            <td style="height: 28px; width: 46px">
                </td>
            <td style="height: 28px">
                </td>
            <td style="height: 28px">
                &nbsp;</td>
            <td style="height: 28px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 37px" align="right">
                <asp:Label ID="Label1" runat="server" Text="Empleado:"></asp:Label>
            </td>
            <td align="left" >
                <asp:DropDownList ID="ddlEmpleados" runat="server" AutoPostBack="True" 
                    Width="150px" >
                </asp:DropDownList>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToValidate="ddlEmpleados" Display="Dynamic" ErrorMessage="*" 
                    Operator="NotEqual" Type="Integer" ValidationGroup="empleado" 
                    ValueToCompare="0"></asp:CompareValidator>
                </td>
            <td align="right" style="width: 46px" >
                <asp:Label ID="Label3" runat="server" Text="Turno:"></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlTurnos" runat="server">
                </asp:DropDownList>
                </td>
            <td align="right">
                <asp:Label ID="Label2" runat="server" Text="Fecha:"></asp:Label>
                </td>
            <td align="left">
                <asp:Calendar ID="calFecha" runat="server" BackColor="White" 
                    BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" 
                    DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" 
                    ForeColor="#003399" Height="85px" 
                    ToolTip="Se tomará el primer dia habil de la semana seleccionada. Y el mes del dia seleccionado" 
                    Width="175px">
                    <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                    <WeekendDayStyle BackColor="#CCCCFF" />
                    <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                    <OtherMonthDayStyle ForeColor="#999999" />
                    <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
                    <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
                    <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" 
                        Font-Bold="True" Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
                </asp:Calendar>
                </td>
        </tr>
        <tr>
            <td style="height: 26px; width: 37px">
                &nbsp;</td>
            <td style="height: 26px; width: 122px;">
                &nbsp;</td>
            <td style="height: 26px; width: 46px">
                &nbsp;</td>
            <td style="height: 26px">
                </td>
            <td style="height: 26px">
                &nbsp;</td>
            <td style="height: 26px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="height: 26px; " align="center" colspan="6">
                <asp:Button ID="btnAgregar" runat="server" Text="Agregar" 
                    ValidationGroup="empleado" />
            </td>
        </tr>
        <tr>
            <td style="height: 26px; width: 37px">
                &nbsp;</td>
            <td style="height: 26px; width: 122px;">
                &nbsp;</td>
            <td style="height: 26px; width: 46px">
                &nbsp;</td>
            <td style="height: 26px">
                &nbsp;</td>
            <td style="height: 26px">
                &nbsp;</td>
            <td style="height: 26px">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="6" style="height: 319px" valign="top">
                <asp:GridView ID="gvTurnosEmpleados" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" 
                    DataKeyNames="id_empleado,id_turno,semana" 
                    EmptyDataText="No hay turnos para los parametros seleccionados">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="apellido_nombre" HeaderText="Empleado" />
                        <asp:BoundField DataField="semana" HeaderText="Fecha" />
                        <asp:BoundField DataField="turno" HeaderText="Turno" />
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagenes/trash.gif" 
                            ShowDeleteButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

